<script>
	import utils from './utils/util.js';
	export default {
		onLaunch: function() {
			console.log('App Launch');
			utils.getLocationInfo().then(res => {
				this.globalData.city = res.city.slice(0, res.city.length - 1);
				uni.$emit('city', {
					msg: res.city.slice(0, res.city.length - 1)
				})
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			city: '',
			orderaddress: undefined,
			startaddress: undefined,
			endaddress: undefined,
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	@import "@/common/common.scss";

	::-webkit-scrollbar {
		display: none;
	}

	* {
		word-break: break-all;
		word-wrap: break-word;
		box-sizing: border-box;
		font-family: PingFang SC, PingFang SC;
	}

	view {
		word-break: break-all;
		word-wrap: break-word;
		box-sizing: border-box;
		font-family: PingFang SC, PingFang SC;
	}

	/*每个页面都会生效的css */
	page {
		/*这里一定要设置，否则小程序会有问题 */
		width: auto;
		font-family: PingFang SC, PingFang SC;
		box-sizing: border-box;
		background-color: #EFF2F3;
		word-break: break-all;
		word-wrap: break-word;
	}

	uni-page-body,
	html,
	body {
		height: 100%;
		word-break: break-all;
		word-wrap: break-word;
	}

	// .uni-tabbar {
	// 	border-top-left-radius: 12px;
	// 	border-top-right-radius: 12px;
	// }
</style>